package project.menu.ordermenu.listmadingorders;

import api.controller.IAutoservice;
import project.menu.IMenu;
import project.menu.IMenuItem;
import project.work.Navigator;

public class ListMadingOrders implements IMenuItem{
	private String name = "Get list mading orders";
	private final Integer id = 5;
	private static IMenu submenu;
	private Navigator navigator;
	
	public ListMadingOrders(){
		navigator=Navigator.getInstance();
	}
	
	public Integer getId() {
		return id;
	}
	
	
	public String getNameItem() {
		return name;
	}

	public static void setMenu(IMenu menu) {
		submenu = menu;
	}

	public void action(IAutoservice autoservice) {
		navigator.drawMenu(submenu);

	}

}
